import { ipcMain } from "electron";
import { clientSearchService } from "~/service";

ipcMain.handle("/api/client/search/data", async (_e, payload) => {
  const { id, props } = payload;
  return clientSearchService.dataSearch(id, props);
});

ipcMain.handle("/api/client/search/base", async (_e, payload) => {
  const { id, props } = payload;
  return clientSearchService.baseSearch(id, props);
});

ipcMain.handle("/api/client/search/senior", async (_e, payload) => {
  const { id, props } = payload;
  return clientSearchService.seniorSearch(id, props);
});
